package mapstruct;

import com.pro.common.api.model.BaseModel;
import mapstruct.model.ProductDTO;
import mapstruct.model.ProductEntity;
import org.mapstruct.*;

@MapperConfig
public interface CommonMappingConfig2 {

    @Mapping(target = "id", ignore = true)
    @Mapping(target = "createTime", ignore = true)
    @Mapping(target = "updateTime", ignore = true)
    @Mapping(target = "deleted", ignore = true)
    @BeanMapping(ignoreByDefault = false)
    BaseModel mapIgnoreBase(Object dto);
}
